@extends('layouts.index')

@section('content')
    <div class="banner-pc-m" zoom-width="1024" zoom-heigh="575">
        <div class="frame"
             style=" background-image:url(/static/images/categorybackground.jpeg); font-size:0;width:100%;"></div>
    </div>
    <div class="banner-pc-n">
        <div class="frame"
             style=" background-image:url(/static/images/categorybackground.jpeg); font-size:0;width:100%;"></div>
    </div>
    <div class="bom_a_nav">
        <div class="g_cw">
            <ul class="nav_a">
                <li><a class="" href="{{route('order.create')}}">预约表单</a></li>
            </ul>
        </div>
    </div>
    <div class="top_nav g_mb_a g_mt_a">
        <div class="g_cw">
            <div class="left">
                <div class="g_title_a">
                    <p class="p1"><span class="title_a">预约表单</span></p>
                    <p class="p2"> Service appointment
                    </p>
                </div>
            </div>
            <div class="right">
                <p>
                    <span>当前位置：</span>
                    <a href="#" class="crumb">首页</a> >
                    <a href="/" class="crumb">预约表单</a>

            </div>
            <div class="fg"></div>
        </div>
    </div>

    <div class="order g_mt g_mb">
        <div class="g_cw">
            @include('layouts.tips.message')
            @include('layouts.tips.error')
            <div class="left">
                <div class="message">
                    <form method="POST" action="{{route('order.store',$order)}}">
                        @csrf
                        <div class="mg_lt">
                            <p class="mg1">
                                <span>服务类型</span>
                                <select name="service_id">
                                    @foreach($services as $s)
                                        <option value="{{$s->id}}">{{$s->name}}
                                        </option>
                                    @endforeach
                                </select>
                            </p>
                            <p class="mg1"><span>姓名：</span>
                                <input class="input1" type="text" value="{{$order['name']}}" name="name" id="attr_1">
                            </p>
                            <p class="mg1"><span>手机号码：</span>
                                <input class="input1" type="text" value="{{$order['mobile']}}" name="mobile"
                                       id="attr_2">
                            </p>
                            <p class="mg1"><span>地址 ：</span>
                                <input class="input1" type="text" value="{{$order['mobile']}}" name="address"
                                       id="attr_3">
                            </p>
                            <p class="mg1"><span>邮箱：</span>
                                <input class="input1" type="text" value="{{$order['mobile']}}" name="email" id="attr_4">
                            </p>
                            <p class="mg1">
                                <span style="padding-top:10px;">留言内容：</span>
                                <textarea class="tex1" name="content" style="border-color:#dbd8d8;"
                                          value="{{$order['content']}}"></textarea>
                            </p>
                            <p class="btn">
                                <button class="btn1">提交</button>
                            </p>
                        </div>
                    </form>

                </div>
            </div>
            <div class="right"><img class="g_imgf"
                                    src="/static/picture/2706382db7212bb7c98e8effe45fc00e.jpeg"></div>
        </div>
    </div>
@endsection
